package com.yx.xf.Xftypetree.ui;

import java.sql.ResultSet;
import java.sql.SQLException;

public   class  XftypetreeRowMapper implements org.springframework.jdbc.core.RowMapper {

 
    public Object mapRow(ResultSet rs, int arg1) throws SQLException  {
        Xftypetree model=new Xftypetree();
        model.setDeptcode(rs.getString("deptcode")) ;
        model.setDeptdesc(rs.getString("deptdesc")) ;
        model.setDeptstatus(rs.getInt("deptstatus")) ;
        model.setIcon(rs.getString("icon")) ;
        model.setName(rs.getString("name")) ;
        model.setPcode(rs.getString("pcode")) ;
        model.setPosition(rs.getInt("position")) ;
		try{
			model.setSubDeptcount(rs.getInt("count_")) ;
		}catch (Exception e) {
			// TODO: handle exception
		}
        return model;
    }
}
